\name{checknecessary}
\alias{checknecessary}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
null
}
\description{
%%  ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
checknecessary(args, spec)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{args}{
%%     ~~Describe \code{args} here~~
}
  \item{spec}{
%%     ~~Describe \code{spec} here~~
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
%%  ~Describe the value returned
%%  If it is a LIST, use
%%  \item{comp1 }{Description of 'comp1'}
%%  \item{comp2 }{Description of 'comp2'}
%% ...
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
%% ~~objects to See Also as \code{\link{help}}, ~~~
}
\examples{
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (args, spec) 
{
    dd <- spec[, 3]
    dd <- which(dd == "2")
    if (length(dd) > 0) {
        data <- as.character(t(spec[dd, 1:2]))
        lab <- args[seq(1, length(args), 2)]
        ll <- length(lab)
        for (i in 1:ll) {
            data[which(data == lab[i])] <- 1
        }
        data[which(data != "1")] <- 0
        jishu <- as.numeric(data[seq(1, length(data), 2)])
        oushu <- as.numeric(data[seq(2, length(data), 2)])
        panduan <- jishu + oushu
        panduan <- which(panduan == 0)
        if (length(panduan) == 0) {
            return(TRUE)
        }
        else {
            cat("    Tip:Missing the necessary parameters\n")
            ll <- length(dd)
            for (i in 1:ll) {
                cat(paste0("[", "[", spec[dd[i], 1], "|", spec[dd[i], 
                  2], "]", "<", spec[dd[i], 4], ">", "]"))
            }
            return(FALSE)
        }
    }
    return(TRUE)
  }
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ ~kwd1 }% use one of  RShowDoc("KEYWORDS")
\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line
